
package dieci.hibernate;

import dieci.database.PersistentObject;
import dieci.system.Client;

/**
 *
 * @author DuckSys
 */
public class HibClient implements PersistentObject{

    private String name;
    private int clientId;
    private String phoneNumber;
    private String email;
    private String address;    
    private String contactPerson;
    private String webSite;
    private int deleted;
    
    public HibClient()
    {
    }
    
    public HibClient(Client client)
    {
        this.name = client.getName();
        this.email = client.getEmail();
        this.phoneNumber = client.getPhoneNumber();
        this.address = client.getAddress();
        this.contactPerson = client.getContactPerson();
        this.webSite = client.getWebSite();
        this.deleted = client.getDeleted();
    }
    
    public HibClient(int clientId, Client client)
    {
        this(client);
        this.clientId = clientId;        
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public int getClientId()
    {
        return clientId;
    }

    public void setClientId(int clientId)
    {
        this.clientId = clientId;
    }

    public String getPhoneNumber()
    {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }

    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }
    
    /**
     * Get the value of contactPerson
     *
     * @return the value of contactPerson
     */
    public String getContactPerson()
    {
        return contactPerson;
    }

    /**
     * Set the value of contactPerson
     *
     * @param contactPerson new value of contactPerson
     */
    public void setContactPerson(String contactPerson)
    {
        this.contactPerson = contactPerson;
    }

    /**
     * Get the value of adress
     *
     * @return the value of adress
     */
    public String getAddress()
    {
        return address;
    }

    /**
     * Set the value of adress
     *
     * @param address new value of adress
     */
    public void setAddress(String address)
    {
        this.address = address;
    }
    
    /**
     * Get the value of webSite
     *
     * @return the value of webSite
     */
    public String getWebSite()
    {
        return webSite;
    }

    /**
     * Set the value of webSite
     *
     * @param webSite new value of webSite
     */
    public void setWebSite(String webSite)
    {
        this.webSite = webSite;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }
    
    
}
